import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Home from '../components/Home.vue'
import About from '../components/about.vue'
import List from '../components/todos/index.vue'
import Todos from '../components/slotLists.vue'
import ScrollView from '../components/scrollView.vue'
import Mydate from '../components/myDate.vue'
import Xdate from '../components/xDate.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'scrollView',
      component: ScrollView
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/about',
      name: 'about',
      component: About
    },
    {
      path: '/list',
      name: 'list',
      component: List
    },
    {
      path: '/todolists',
      name: 'todolist',
      component: Todos
    },
    {
      path: '/scrollView',
      name: 'scrollView',
      component: ScrollView
    },
    {
      path: '/mydate',
      name: 'mydate',
      component: Mydate
    },
    {
      path: '/xdate',
      name: 'xdate',
      component: Xdate
    }
  ]
})
